package com.tql.pandian.log;

import com.tql.pandian.entity.TqlPandianDataLogEntity;
import com.tql.pandian.event.LogEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class EventServiceListener {

    @Async
    @EventListener
    public void handleOrderBaseMsgEvent(LogEvent event){
        log.info("监听：event={}", event);
        TqlPandianDataLogEntity aa = event.value();
    }
}
